package com.visionet.school.app.web.common.utils;

import java.util.Properties;

public class Constants {

	public final static String PAGE_RESULT_LIST = "pageResult";
	public final static String PAGE_TOTAL_Item_SIZE = "pageTotalItemSize";
	public final static String PAGE_TOTAL_PAGE_SIZE = "pageTotalPageSize";
	public final static String PAGE_INDEX = "pageIndex";
	public final static String PAGE_SIZE = "pageSize";

	public final static String SERVER_ROOT_URL = "server.root.url";
	
	public final static String SERVER_ROOT_URL_HOST = "server.root.url.host";
	
	public final static String SERVER_ROOT_URL_PORT = "server.root.url.port";
	
	public final static String SERVER_SIGN_APPKEY = "server.sign.appkey";
	
	public final static String SERVER_SIGN_APPTOKEN = "server.sign.apptoken";
	
	public final static String SERSSION_TIMEOUT = "";
	
	
	public final static String URL_SEPARATOR = "/";
	
	public final static String PARAM_CONNECTOR = "?";
	
	public final static String PARAMS_CONNECTOR = "&";
	
	public final static String PARAM_ASSIGN = "=";
	
	public final static String SUCCESS_CODE = "10000";
	
	
	private static Properties props = new Properties(); 
	
	private Constants(){
		
	}
	
	public static void init(Properties props){
		Constants.props.putAll(props);
	}
	
	public static String get(String key){
		return props.getProperty(key);
	}

}
